<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <input type="checkbox" value="1" id="li">nan
    <script>
        alert(parseInt("1a2")+"fff\nf");
           function temp(){
               alert("我是一个TEST");	
               var temp3=confirm("停车吗？");
               alert(temp3);
               var temp2=prompt("停车吗?");
               alert(temp2);
           }
              document.getElementById("li").addEventListener("click",temp,false);
           </script>
</body>
</html>